﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Coolzon.Web.Models
{
    public class Library
    {
        public string Name { get; set; }
        public string Version { get; set; }
        public string File { get; set; }
        public Dependency[] Dependencies { get; set; }

        /// <summary>
        /// 实际的磁盘路径
        /// </summary>
        [Newtonsoft.Json.JsonIgnore()]
        public string AbsoluteDirectory { get; set; }

        public Version GetVersion()
        {
            return new Version(Version);
        }
    }

    public class Dependency
    {
        public string Name { get; set; }
        public string File { get; set; }
    }
}
